﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BillingStorageList.aspx.cs" EnableEventValidation="false" Inherits="WMS6.Web.Billing.BillingStorageList" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ PreviousPageType VirtualPath="~/Billing/BillingStorageQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>BillingStorageList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>
    
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <base target="_self" />

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            var action = document.getElementById("hdnActionID").value;
            if(action != null && action != "")
            {
                var array = action.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initListPage();
            }
        }
        
        //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "BillingStorageQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }       
    </script>

</head>
<body>
    <form id="F9241" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblBillingOrderList" runat="server" CssClass="label_header" Text="仓储费列表" meta:resourcekey="lblBillingOrderList"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False"
                            OnClick="btnGoBack_Click"  />
                    </td>
                    <td><asp:Button ID="btnAction" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnAction %>" 
                            meta:resourcekey="btnActionResource1" /></td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$ Resources:ButtonResource,btnExport %>"
                            Enabled="False" CssClass="button" OnClick="btnExport_Click" 
                            meta:resourcekey="btnExportResource1" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                            meta:resourcekey="lblMsgResource1"></asp:Label>
                    </div>
                    <asp:GridView ID="gvBillingStorage" runat="server" AutoGenerateColumns="False" PageSize="50" oninit="gvBillingStorage_Init" 
                        CssClass="gridview" DataKeyNames="" OnRowDataBound="gvBillingStorage_RowDataBound"
                        AllowSorting="True" OnSorting="gvBillingStorage_Sorting"
                        meta:resourcekey="gvBillingStorage">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvBillingStorage');" meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvBillingStorage');" meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                            </asp:TemplateField>

                            <asp:BoundField DataField="DOC_ID" HeaderText="仓储日期" FooterText="仓储日期" SortExpression="DOC_ID" 
                                meta:resourcekey="DOC_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>

                            <asp:BoundField DataField="BILLING_OBJECT_ID" HeaderText="计费对象" FooterText="计费对象" SortExpression="BILLING_OBJECT_ID" 
                                meta:resourcekey="BILLING_OBJECT_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="DUE_FROM_TO_DESCR" HeaderText="应收应付" FooterText="应收应付" SortExpression="DUE_FROM_TO_DESCR" 
                                meta:resourcekey="DUE_FROM_TO_DESCR">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="DOC_TYPE_DESCR" HeaderText="费用说明" FooterText="费用说明" SortExpression="DOC_TYPE_DESCR" 
                                meta:resourcekey="DOC_TYPE_DESCR">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            

                            <asp:BoundField DataField="BILLING_AMOUNT" HeaderText="金额" FooterText="金额" SortExpression="BILLING_AMOUNT"
                                meta:resourcekey="BILLING_AMOUNT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="CREATED_DATE" HeaderText="凭证日期" FooterText="凭证日期" SortExpression="CREATED_DATE"
                                meta:resourcekey="CREATED_DATE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <%--<asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" SortExpression="REMARK"
                                meta:resourcekey="REMARK">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>--%>
                        </Columns>
                    </asp:GridView>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>

            </table>
        </div>
    </div>
    <input type="hidden" id="hiddenFlag" />
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
    <input type="hidden" id="hdnRtnValue" runat="server" />
    <input type="hidden" id="hdnOwnerID" runat="server" />
    </form>
</body>
</html>

